package com.xju.subjectsystem.service;

import com.xju.subjectsystem.pojo.Books;
import com.xju.subjectsystem.pojo.Student;

import java.util.List;
import java.util.Map;

/**
 * -*- coding:utf-8 -*-
 *
 * @projectName: xju_-course_-kg_-master
 * @package: com.xju.subjectsystem.service
 * @className: BooksService
 * @author: Eiard
 * @description: TODO : 参考资料
 * @date: 2024-12-17 01:19
 */
public interface BooksService {

    /**
     * @methodName: selectByCsno
     * @package: com.xju.subjectsystem.service
     * @description: DONE : 查询班级对应的教材和参考书
     * @author: Eiard
     * @date: 2024-12-17 01:53
     * @param: csno
     * @return: List<Books>
     */
    List<Books> selectByCsno(Integer csno);

    /**
     * @methodName: deleteByBno
     * @package: com.xju.subjectsystem.service
     * @description: DONE : 删除班级绑定教材或者参考书
     * @author: Eiard
     * @date: 2024-12-17 02:15
     * @param: bno
     */
    void deleteByBno(Integer bno);


    /**
     * @methodName: add
     * @package: com.xju.subjectsystem.service
     * @description: DONE : 添加教材或者参考书 全参
     * @author: Eiard
     * @date: 2024-12-17 01:26
     * @param: books
     * @return: void
     */
    void add(Books books);

    /**
     * @methodName: batchAddBooks
     * @package: com.xju.subjectsystem.service
     * @description: DONE : 为班级批量添加教材和参考书
     * @author: Eiard
     * @date: 2024-12-17 01:53
     * @param: booksList
     * @return: Map<List < String>>
     */
    Map<String, List<String>> batchAddBooks(List<Books> booksList);


    /**
     * @methodName: updateSelective
     * @package: com.xju.subjectsystem.service
     * @description: DONE : 可选参数更新
     * @author: Eiard
     * @date: 2024-12-17 02:29
     * @param: books
     * @return: void
     */
    public void updateSelective(Books books);

    /**
     * @methodName: updateBooks
     * @package: com.xju.subjectsystem.service
     * @description: DONE : 只能改改教材和参考书的名称和类别，不能改csno
     * @author: Eiard
     * @date: 2024-12-17 02:26
     * @param: books
     * @return: void
     */
    void updateBooks(Books books);
}
